<?php 
	$room = null;
	$list = array();
	if (!empty($_GET["id"]))
	{
		$list = $this->getRoomById($_GET["id"])->getData();
		if (count($list) > 0)
		{
			$room = $list[0];
		}
	}
	else
	{
		if (count($this->roomList->getData()) > 0)
		{
            $temp = $this->roomList->getData();
            $room = $temp[0];
		}
	}
?>
 <div class="fl kf-center">
	<div class="bk-a">
		<br />
		<div id="title"><a href="index.php">首页</a>&nbsp;&gt;&nbsp;<a href="?r=room">舒适客房</a></a></div>
	    <p class="kf-begin">
	    <?php 
	    	echo $room['name'];
	    ?>
	    </p>
		<div class="bk-l"></div>
		<div class="kf-content">
		<?php 
			echo $room['desc'];
		?>
		</div>
	</div>
</div>